home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.pl1,comp.lang.c
- Subject: Re: PL/I and C
- Date: 4 Mar 1996 01:20:30 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4he5ju$aeh@solutions.solon.com>
- References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <4h8vte$s76@goanna.cs.rmit.EDU.AU> <4h9t5l$hkk@solutions.solon.com> <ag129.168.0012487D@ucs.cam.ac.uk>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <ag129.168.0012487D@ucs.cam.ac.uk>,
- A. Grant <ag129@ucs.cam.ac.uk> wrote:
- [I wrote]
- >>You're forgetting the "f". Which is apparently because you lack the
- >>conceputal framework. sprintf-> string print *formatted*. Those formats
- >>are awe-inspiringly powerful.
-
- >Awe-inspiring? It can't even put commas into numbers, which is about
- >the most basic requirement of printing formatted numbers.
-
- *sigh* Fair enough. I think they may be able to add this in C9X. On
- the other hand, how do you do it *correctly*? I think one of the
- reasons C doesn't have this is that locale wasn't well defined may
- back when.
-
- >And PUT STRING with EDIT _is_ a formatted string print.
-
- Cool. :)
-
- Mostly, my point was that sprintf can trim characters and center strings,
- with not too much effort.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-